package com.zzb.myshowme;

import android.app.Application;

import com.facebook.drawee.backends.pipeline.Fresco;

/**
 * Created by Administrator on 2016/10/12.
 */
public class MyApplication extends Application {
    private static MyApplication mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        initImageLoaderEngine();
    }

    public static MyApplication getInstance() {

        if (mContext == null) {
            mContext = new MyApplication();
        }
        return mContext;
    }

    private void initImageLoaderEngine() {
        Fresco.initialize(this);
    }
}
